x=eval(input("请输入本月应得工资:"))
w=x-5000
if w<=0:
    y=0
elif 0<w<=1500:
    y=w*0.03
elif 1500<w<=4500:
    y=(w-1500)*0.1+1500*0.03
elif 4500<w<=9000:
    y=(w-4500)*0.2+3000*0.1+1500*0.03
elif 9000<w<=35000:
    y=(w-35000)*0.25+4500*0.2+3000*0.1+1500*0.03
elif 35000<w<=55000:
    y=(w-35000)*0.3+26000*0.25+4500*0.2+3000*0.1+1500*0.03
elif 55000<w<=80000:
    y=(w-55000)*0.35+25000*0.3+26000*0.25+4500*0.2+3000*0.1+1500*0.03
elif w>80000:
    y=(w-80000)*0.45+25000*0.3+20000*0.3+26000*0.25+4500*0.2+3000*0.1+1500*0.03
print("本月的税收为:{}".format(y))